summaryrefslogtreecommitdiffstats
path: root/src/pages/sujet/[slug].tsx
Commit message (Collapse)AuthorAgeFilesLines
* chore: display initial posts, thematics & topicsArmand Philippot2022-02-141-2/+9
| | | | | By fetching the data in getStaticProps, I can display the data even for users with Javascript disabled.
* chore: improve accessibilityArmand Philippot2022-02-111-2/+14
|
* fix: handle getStaticPaths fallbackArmand Philippot2022-02-021-2/+7
| | | | | | | | I had errors with next build because of fallback. I need to return early if the path does not exists, if not Next complains about undefined variables. I don't think it was related but I also fix the paths format in getStaticPaths, I forgot the params object in some dynamic routes.
* refactor(config): move config from config dir to utilsArmand Philippot2022-01-291-14/+14
|
* chore: replace lingui functions with react-intlArmand Philippot2022-01-291-3/+17
|
* chore(i18n): replace i18n provider and helpersArmand Philippot2022-01-291-11/+11
|
* fix: handle translation with linguiArmand Philippot2022-01-281-5/+4
| | | | | | | | The previous method was not working so I tried a different approach. Translation is loaded but I'm still getting warnings: * Plurals for locale undefined aren't loaded * Text content did not match I can't figure how to fix them...
* chore: display total found posts in page metaArmand Philippot2022-01-251-0/+1
|
* refactor: rename all subject occurrences into topicArmand Philippot2022-01-231-45/+39
| | | | | I change the name in graphql endpoint, so I decided to repercute this change here.
* chore: add opengraph and twitter metaArmand Philippot2022-01-191-2/+12
|
* refactor(config): move defaultLocale as property of config.localesArmand Philippot2022-01-191-2/+2
| | | | | I will need the country code, so I think it makes more sense to gather them inside the same property.
* chore: add structured data using schema.org and JSON-LDArmand Philippot2022-01-191-0/+52
| | | | I also added the featured image on single article.
* chore: update sidebar and widgets stylesArmand Philippot2022-01-151-6/+6
| | | | | | | | | I'm now using a widget that can be expanded/collapsed. It also allows me to handle more effectively widgets overflow and to avoid styles repetitions. However, with stylelint rule "no-descending-specificity", I'm not sure if the stylesheets are really logical... Maybe I should deactivate this rule.
* chore: add title and meta desc to subjects and thematicsArmand Philippot2022-01-111-24/+33
|
* chore: add toc and widgets to subject pagesArmand Philippot2022-01-111-8/+36
|
* chore: adjust css grid on listing pages without sidebarArmand Philippot2022-01-071-10/+9
|
* chore: move Main grid to its childrenArmand Philippot2022-01-061-5/+8
| | | | This way I can use full width background for some blocks.
* refactor: reuse PostMeta components on single articles/pagesArmand Philippot2022-01-061-22/+12
|
* refactor: avoid mutated array with reverse methodArmand Philippot2022-01-041-1/+1
|
* chore: add a breadcrumb componentArmand Philippot2021-12-211-5/+4
|
* refactor: rewrite types and servicesArmand Philippot2021-12-201-6/+5
| | | | | | | I was repeating myself a lot in services. So I rewrited the different functions to improve readability and I extracted some formatting functions to put them in utils. I also rewrited/reorganized some types to keep consistent names.
* chore: add subject viewArmand Philippot2021-12-181-0/+96